package main

import "fmt"

type person struct {
	name string
	age int
}

func main()  {
	//方法1
	//var P person
	//P.name = "zhangsan"
	//P.age = 1
	//方法2
	P := person{"zhangsan",25}
	fmt.Println(P.name)
	fmt.Println(P.age)
}